<h1 style="background-color:#171413; color: #ffffff;">Mud Contrast</h1>
<pre style="font-family:Monaco, monospace; padding:2em; background-color: #0d0b0b; color: #ffffff;">
&lt;?php

<span style="color: #f2c12f;">namespace</span> Illuminate\Container;

<span style="color: #f2c12f;">use</span> Closure;
<span style="color: #f2c12f;">use</span> ArrayAccess;

<span style="color: #524343;">/**
 * Theme: Mud Contrast
 * Mud.
 *
 * Copyright (c) 2014 Dayle Rees
 */</span>
<span style="color: #f2c12f;">class</span> Container <span style="color: #f55239;">implements</span> ArrayAccess
{
    <span style="color: #524343;">/**
     * An array of the types that have been resolved.
     *
     * <span style="color: #e3d7d6;">@var</span> array
     */</span>
    <span style="color: #f55239;">protected</span> <span style="color: ;">$resolved</span> <span style="color: #f2c12f;">=</span> <span style="color: #eaba2c;">array</span>();

    <span style="color: #524343;">/**
     * Determine if a given type is shared.
     *
     * <span style="color: #e3d7d6;">@param</span>  string  $abstract
     * <span style="color: #e3d7d6;">@return</span> bool
     */</span>
    <span style="color: #f55239;">public</span> <span style="color: #f2c12f;">function</span> <span style="color: #8ee350;">isShared</span>(<span style="color: ;">$abstract</span>)
    {
        <span style="color: #f8553c;">if</span> (<span style="color: #eaba2c;">isset</span>(<span style="color: ;">$this</span><span style="color: #f8553c;">-></span><span style="color: ;">bindings</span>[<span style="color: ;">$abstract</span>][<span style="color: #b5db99;">'shared'</span>]))
        {
            <span style="color: ;">$shared</span> <span style="color: #f8553c;">=</span> <span style="color: ;">$this</span><span style="color: #f8553c;">-></span><span style="color: ;">bindings</span>[<span style="color: ;">$abstract</span>][<span style="color: #b5db99;">'shared'</span>];
        }
        <span style="color: #f8553c;">else</span>
        {
            <span style="color: ;">$shared</span> <span style="color: #f8553c;">=</span> <span style="color: #f55239;">false</span>;
        }

        <span style="color: #f8553c;">return</span> <span style="color: #eaba2c;">isset</span>(<span style="color: ;">$this</span><span style="color: #f8553c;">-></span><span style="color: ;">instances</span>[<span style="color: ;">$abstract</span>]) <span style="color: #f8553c;">||</span> <span style="color: ;">$shared</span> <span style="color: #f8553c;">===</span> <span style="color: #f55239;">true</span>;
    }

}
</pre>
